#ifndef _iic_H
#define _iic_H

#include "public.h"

//????EEPROM?????
sbit IIC_SCL=P2^1;//SCL?????
sbit IIC_SDA=P2^0;//SDA??????


//IIC???????????				 
void iic_start(void);			//????IIC??'?z?
void iic_stop(void);	  		//????IIC???z?
void iic_write_byte(u8 txd);	//IIC????h?????
u8 iic_read_byte(u8 ack);		//IIC???h?????
u8 iic_wait_ack(void); 			//IIC???ACK?z?
void iic_ack(void);				//IIC????ACK?z?
void iic_nack(void);			//IIC??????ACK?z?

#endif
